package com.icas.entity.resultentity;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.util.ObjectUtils;

/**
 * @Author: tocchen
 * @Date: 2022/4/19 14:20
 * @Description 历史签到的结果封装类
 **/
@Data
@NoArgsConstructor
public class HistoryAttendEntity {
    private String date;
    private String sheetId;
    private String status;

    public HistoryAttendEntity(String sheetId,String date,String status){
        this.sheetId = sheetId;
        this.date = date;
        this.status = status;
    }

    public static HistoryAttendEntity createEntity(String sheetId,String date,String status){
        if ("".equals(sheetId)||"".equals(date)|| ObjectUtils.isEmpty(sheetId)||ObjectUtils.isEmpty(date)){
            return null;
        }
        return new HistoryAttendEntity(sheetId,date,status);
    }
}
